//
//  ZBDebugUserInfoModel.m
//  DevDemo
//
//  Created by BO ZHOU on 2021/5/6.
//

#import "ZBDebugUserInfoModel.h"
#import "ZBBaseDebugView.h"

@implementation ZBDebugUserInfoModel

+(instancetype)modelWithDic:(NSDictionary*)dic {
    ZBDebugUserInfoModel* model = ZBDebugUserInfoModel.new;
    [model setValuesForKeysWithDictionary:dic];
    return model;
}

+(NSArray<ZBDebugUserInfoModel*>*)modelsFromPlistWithPlistName:(NSString*)plistName {
    
    NSString* filePath = [NSString stringWithFormat:@"%@/%@.plist", SelfBundle(), plistName];
    
    NSArray* arr = [NSArray arrayWithContentsOfURL:[NSURL fileURLWithPath:filePath]];
    NSMutableArray* marr = [NSMutableArray arrayWithCapacity:arr.count];
    for (NSDictionary* dic in arr) {
        [marr addObject:[ZBDebugUserInfoModel modelWithDic:dic]];
    }
    
    return marr;
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {}

@end
